package cjq.demo.thread.ch4_7;

import java.util.Date;
import java.util.concurrent.Callable;

/**
 * Created by Administrator on 2016/4/30.
 */
public class Task implements Callable<String> {
    private String name;

    public Task(String name){
        this.name = name;
    }


    public String call() throws Exception{
        System.out.println(name+" Starting at :"+new Date());
        return "Hello, world";
    }
}
